/****************************************************************
 * Fulguro
 * Copyright (C) 2004 Christophe Clienti
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 ***************************************************************/

/*********************** Documentation ***********************/
%feature("autodoc","""
[out] FLGR_Data1D dest
[in] FLGR_Data1D test1
[in] String test : {\"==\" | \"!=\" | \"<=\" | \">=\" | \"<\" | \">\"}
[in] FLGR_Data1D test2 or FLGR_Vector or scalar or List
[in] FLGR_Data1D true or FLGR_Vector or scalar or List
[in] FLGR_Data1D false or FLGR_Vector or scalar or List
[return] FLGR_Ret\n
Replace each value of a Data1D by using a logic test.\n
Example: flgr1d_replace(destination, input1, \"==\", input2, true, false)\n
input2, true, false could be FLGR_Data1D, FLGR_Vector, list  or scalar constant.\n
""") flgr1d_replace_I_with_I_I_I;
%feature("autodoc"," ") flgr1d_replace_I_with_I_I_C;
%feature("autodoc"," ") flgr1d_replace_I_with_I_C_I;
%feature("autodoc"," ") flgr1d_replace_I_with_I_C_C;
%feature("autodoc"," ") flgr1d_replace_I_with_C_I_I;
%feature("autodoc"," ") flgr1d_replace_I_with_C_I_C;
%feature("autodoc"," ") flgr1d_replace_I_with_C_C_I;
%feature("autodoc"," ") flgr1d_replace_I_with_C_C_C;


%feature("autodoc","""
[out] FLGR_Data2D dest
[in] FLGR_Data2D test1
[in] String test : {\"==\" | \"!=\" | \"<=\" | \">=\" | \"<\" | \">\"}
[in] FLGR_Data2D test2 or FLGR_Vector or scalar or List
[in] FLGR_Data2D true or FLGR_Vector or scalar or List
[in] FLGR_Data2D false or FLGR_Vector or scalar or List
[return] FLGR_Ret\n
Replace each value of a Data2D by using a logic test.\n
Example: flgr2d_replace(destination, input1, \"==\", input2, true, false)\n
input2, true, false could be FLGR_Data2D, FLGR_Vector, list  or scalar constant.\n
""") flgr2d_replace_I_with_I_I_I;
%feature("autodoc"," ") flgr2d_replace_I_with_I_I_C;
%feature("autodoc"," ") flgr2d_replace_I_with_I_C_I;
%feature("autodoc"," ") flgr2d_replace_I_with_I_C_C;
%feature("autodoc"," ") flgr2d_replace_I_with_C_I_I;
%feature("autodoc"," ") flgr2d_replace_I_with_C_I_C;
%feature("autodoc"," ") flgr2d_replace_I_with_C_C_I;
%feature("autodoc"," ") flgr2d_replace_I_with_C_C_C;

/*********** REPLACE FUNCTIONS ***************/

%rename (flgr1d_replace) flgr1d_replace_I_with_I_I_I(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Data1D *,FLGR_Data1D *,FLGR_Data1D *);
%rename (flgr1d_replace) flgr1d_replace_I_with_I_I_C(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Data1D *,FLGR_Data1D *,FLGR_Vector *);
%rename (flgr1d_replace) flgr1d_replace_I_with_I_C_I(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Data1D *,FLGR_Vector *,FLGR_Data1D *);
%rename (flgr1d_replace) flgr1d_replace_I_with_I_C_C(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Data1D *,FLGR_Vector *,FLGR_Vector *);
%rename (flgr1d_replace) flgr1d_replace_I_with_C_I_I(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Vector *,FLGR_Data1D *,FLGR_Data1D *);
%rename (flgr1d_replace) flgr1d_replace_I_with_C_I_C(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Vector *,FLGR_Data1D *,FLGR_Vector *);
%rename (flgr1d_replace) flgr1d_replace_I_with_C_C_I(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Vector *,FLGR_Vector *,FLGR_Data1D *);
%rename (flgr1d_replace) flgr1d_replace_I_with_C_C_C(FLGR_Data1D *,FLGR_Data1D *,char *,FLGR_Vector *,FLGR_Vector *,FLGR_Vector *);


extern int flgr1d_replace_I_with_I_I_I(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Data1D *dattest2,
				       FLGR_Data1D *dattrue, FLGR_Data1D *datfalse); 

extern int flgr1d_replace_I_with_I_I_C(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Data1D *dattest2,
				       FLGR_Data1D *dattrue, FLGR_Vector *vfalse); 

 extern int flgr1d_replace_I_with_I_C_I(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Data1D *dattest2,
					FLGR_Vector *vtrue, FLGR_Data1D *datfalse); 

extern int flgr1d_replace_I_with_I_C_C(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Data1D *dattest2,
				       FLGR_Vector *vtrue, FLGR_Vector *vfalse); 

extern int flgr1d_replace_I_with_C_I_I(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Vector *vtest2,
				       FLGR_Data1D *dattrue, FLGR_Data1D *datfalse); 

extern int flgr1d_replace_I_with_C_I_C(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Vector *vtest2,
				       FLGR_Data1D *dattrue, FLGR_Vector *vfalse ); 

extern int flgr1d_replace_I_with_C_C_I(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Vector *vtest2,
				       FLGR_Vector *vtrue, FLGR_Data1D *datfalse); 

extern int flgr1d_replace_I_with_C_C_C(FLGR_Data1D *datout,FLGR_Data1D *dattest1, char * test, FLGR_Vector *vtest2,
				       FLGR_Vector *vtrue, FLGR_Vector *vfalse);



%rename (flgr2d_replace) flgr2d_replace_I_with_I_I_I(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Data2D *,FLGR_Data2D *,FLGR_Data2D *);
%rename (flgr2d_replace) flgr2d_replace_I_with_I_I_C(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Data2D *,FLGR_Data2D *,FLGR_Vector *);
%rename (flgr2d_replace) flgr2d_replace_I_with_I_C_I(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Data2D *,FLGR_Vector *,FLGR_Data2D *);
%rename (flgr2d_replace) flgr2d_replace_I_with_I_C_C(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Data2D *,FLGR_Vector *,FLGR_Vector *);
%rename (flgr2d_replace) flgr2d_replace_I_with_C_I_I(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Vector *,FLGR_Data2D *,FLGR_Data2D *);
%rename (flgr2d_replace) flgr2d_replace_I_with_C_I_C(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Vector *,FLGR_Data2D *,FLGR_Vector *);
%rename (flgr2d_replace) flgr2d_replace_I_with_C_C_I(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Vector *,FLGR_Vector *,FLGR_Data2D *);
%rename (flgr2d_replace) flgr2d_replace_I_with_C_C_C(FLGR_Data2D *,FLGR_Data2D *,char *,FLGR_Vector *,FLGR_Vector *,FLGR_Vector *);


extern int flgr2d_replace_I_with_I_I_I(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Data2D *imtest2,
				       FLGR_Data2D *imtrue, FLGR_Data2D *imfalse); 

 extern int flgr2d_replace_I_with_I_I_C(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Data2D *imtest2,
					FLGR_Data2D *imtrue, FLGR_Vector *vfalse); 

 extern int flgr2d_replace_I_with_I_C_I(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Data2D *imtest2,
					FLGR_Vector *vtrue, FLGR_Data2D *imfalse); 

 extern int flgr2d_replace_I_with_I_C_C(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Data2D *imtest2,
					FLGR_Vector *vtrue, FLGR_Vector *vfalse); 

 extern int flgr2d_replace_I_with_C_I_I(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Vector *vtest2,
					FLGR_Data2D *imtrue, FLGR_Data2D *imfalse); 

 extern int flgr2d_replace_I_with_C_I_C(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Vector *vtest2,
					FLGR_Data2D *imtrue, FLGR_Vector *vfalse ); 

 extern int flgr2d_replace_I_with_C_C_I(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Vector *vtest2,
					FLGR_Vector *vtrue, FLGR_Data2D *imfalse); 

 extern int flgr2d_replace_I_with_C_C_C(FLGR_Data2D *imout,FLGR_Data2D *imtest1, char * test, FLGR_Vector *vtest2,
					FLGR_Vector *vtrue, FLGR_Vector *vfalse);
